<%@page import="entities.Article"%>
<%@page import="java.util.List"%>
<%
List<Article> articles = (List<Article>) request.getAttribute("articles");
%>
<jsp:include page="/demo/layouts/header.jsp" />

		<div class="dir">
			<a href="/home">Home</a>
		</div>
		
		<br />
		<div class="submit-form">
			<form action="" method="post">
			<table width="100%" cellpadding="0" cellspacing="0">
				<thead>
					<tr>
						<td colspan="1"><div class="title-form">List Article</div></td>
					</tr>
				</thead>
				<tbody>
					<% for (int i = 0; i < articles.size(); i++) { %>
					<tr>
						<td width="30%" class="domain">
							<a href="/a/<%=articles.get(i).getId() %>"><%=articles.get(i).getTitle() %></a>
						</td>
					</tr>
					<% } %>
				</tbody>
			</table>
			</form>
		</div>

<jsp:include page="/demo/layouts/footer.jsp" />